package com.example.course.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 课程目录表
 * @Date 2025-04-22 15:36:52
 * @author Jasmine-drs
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("directory")
@ApiModel(value="Directory对象", description="课程目录表")
public class Directory implements Serializable {

    @NotNull(message="[主键]不能为空")
    @ApiModelProperty("主键")
    private Integer id;

    @NotBlank(message="[目录名]不能为空")
    @Size(max= 32,message="编码长度不能超过32")
    @ApiModelProperty("目录名")
    private String content;

    @NotNull(message="[课程id]不能为空")
    @ApiModelProperty("课程id")
    private Integer courseId;

}
